package gateway.controller;

import common.model.result.Result;
import common.model.result.ResultCodeEnum;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class Fallback {
    @RequestMapping("/authfallback")
    public Result authfallback() {
        return Result.failure(ResultCodeEnum.SERVER_ERROR, "认证服务异常");
    }
    @RequestMapping("/shopfallback")
    public Result shopfallback() {
        return Result.failure(ResultCodeEnum.SERVER_ERROR,"商品服务异常");
    }
    @RequestMapping("/goodsfallback")
    public Result goodsfallback() {
        return Result.failure(ResultCodeEnum.SERVER_ERROR,"商品服务异常");
    }
    @RequestMapping("/cartfallback")
    public Result cartfallback() {
        return Result.failure(ResultCodeEnum.SERVER_ERROR,"购物车服务异常");
    }
    @RequestMapping("/orderfallback")
    public Result orderfallback() {
        return Result.failure(ResultCodeEnum.SERVER_ERROR,"订单服务异常");
    }
    @RequestMapping("/addressfallback")
    public Result addressfallback() {
        return Result.failure(ResultCodeEnum.SERVER_ERROR,"地址服务异常");
    }
    @RequestMapping("/favoritefallback")
    public Result favoritefallback() {
        return Result.failure(ResultCodeEnum.SERVER_ERROR,"收藏服务异常");
    }
    @RequestMapping("/filefallback")
    public Result filefallback() {
        return Result.failure(ResultCodeEnum.SERVER_ERROR,"文件服务异常");
    }
    @RequestMapping("/couponllback")
    public Result couponfallback() {
        return Result.failure(ResultCodeEnum.SERVER_ERROR,"优惠券服务异常");
    }
    @RequestMapping("/chatllback")
    public Result chatfallback() {
        return Result.failure(ResultCodeEnum.SERVER_ERROR,"客服服务异常");
    }
}
